<table cellpadding="5">
	<input name="id" type="hidden" value="${(cmsEntrepreneurshipInfoItem.id)!}" />
	<tr>
		<td class="tbLabel">名称:</td>
		<td>
			<input name="name"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsEntrepreneurshipInfoItem.name)!}"/>
		</td>
		<td class="tbLabel">地点:</td>
		<td>
			<input name="locationCode"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsEntrepreneurshipInfoItem.locationCode)!}"/>
		</td>
		<td class="tbLabel">导师:</td>
		<td colspan="3">
			<@eu.combogrid id="cmsInstructorId" idField="id"
					textField="name" name="cmsInstructorId" width="162"
					url="cmsInstructor.do?loadList" keyword="code"
					item="com.xdtech.cms.vo.CmsEntrepreneurshipInfoItem"
					values="${(cmsEntrepreneurshipInfoItem.cmsInstructorId)!}" required="true" />		
		</td>
	</tr>
	<tr>
		<td class="tbLabel">联系方式:</td>
		<td>
			<input name="linkTel"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsEntrepreneurshipInfoItem.linkTel)!}"/>
		</td>
		<td class="tbLabel">资金需求:</td>
		<td>
			<input name="moneyNeed"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsEntrepreneurshipInfoItem.moneyNeed)!}"/>
		</td>
		<td class="tbLabel">启动时间:</td>
		<td>
			<input name="startDate" style="width:160px;" class="easyui-datebox"  data-options="required: false" value="${(cmsEntrepreneurshipInfoItem.startDate)!}" />
		</td>
	</tr>
	<tr>
		<td class="tbLabel">图片路径:</td>
		<td colspan="5">
			
			<input id="cmsEntreImgPath" name="imgPath" type="hidden"  value="${(cmsEntrepreneurshipInfoItem.imgPath)!}"/>
			<div>
				<span id="uploadEntrepreImg"></span>
				<span id="uploadEntrepreImgShow">
				<#if cmsEntrepreneurshipInfoItem??>
				<img src="${cmsEntrepreneurshipInfoItem.imgPath!}" onerror="javascript:this.src='static/cms/www/default/images/ds.png';" style="width:234px;height:132px;"/>
				</#if>	
				</span>
			</div>
            <span style="display:none">
            	<input id="btnEntreImgCancel" type="button" value="取消全部上传" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 22px;" />
           	</span>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">项目介绍:</td>
		<td colspan="5">
<!-- 			<input class="easyui-textbox" data-options="multiline:true;required: true" value="This TextBox will allow the user to enter multiple lines of text." style="width:300px;height:100px"> -->
<!-- 			<input class="easyui-textbox" data-options="multiline:true,required: true" name="projectDesc" value="${(cmsEntrepreneurshipInfoItem.projectDesc)!}"/> -->
			<textarea name="projectDesc" style="width: 615px; height: 120px;" class="easyui-validatebox" data-options="required:true">${(cmsEntrepreneurshipInfoItem.projectDesc)!}</textarea>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">项目亮点:</td>
		<td colspan="5">
			<textarea rows="10" cols="100" name="projectGood">${(cmsEntrepreneurshipInfoItem.projectGood)!}</textarea>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">项目难点:</td>
		
		<td colspan="5">
			<textarea rows="10" cols="100" name="projectDifficulty">${(cmsEntrepreneurshipInfoItem.projectDifficulty)!}</textarea>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">团队需求:</td>
		<td colspan="5">
			<textarea rows="10" cols="100" name="teamDesc">${(cmsEntrepreneurshipInfoItem.teamDesc)!}</textarea>
		</td>
	</tr>
</table>


<script>
// CKEDITOR.replace('cmsInstructorResume');

var swfEntreImg = new SWFUpload({
	flash_url : "static/plugins/swfupload/swfupload.swf",
   upload_url: "common.do?uploadFile",
   file_post_name:"filedata",
   post_params: {"name" : "zwm"},
   use_query_string:true,
    file_size_limit : "10 MB",
       file_types : "*.jpg;*.gif;*.png;*.bmp",    //这是全部文件都可以上传，如果要限制只有某些文件上传，则可以这么写 file_types : "*.jpg;*.gif;*.png",
       file_types_description : "图片",
//        file_upload_limit : 1,
       file_queue_limit : 0,
       custom_settings : {
           progressTarget : "fsUploadProgress",
           cancelButtonId : "btnEntreImgCancel"
       },

       button_image_url : "static/plugins/swfupload/swfbtn.png",
 		button_placeholder_id : "uploadEntrepreImg",
 		button_text: "<span class='abtn'>上传图片</span>",
 		button_window_mode:"transparent",
 		button_width: 80,
 		button_height: 24,
 		button_text_left_padding: 22,
 		button_text_top_padding: 2,
       // The event handler functions are defined in handlers.js
       file_queued_handler : fileQueued,
       file_queue_error_handler : fileQueueError,
       file_dialog_complete_handler : fileDialogComplete,
       upload_error_handler : uploadError,
       upload_success_handler : uploadEntreImgSuccess,
       upload_complete_handler : uploadComplete,
       queue_complete_handler : queueComplete    // Queue plugin event
});

function uploadEntreImgSuccess(file,rs) {
	 
	  var json = eval('(' + rs + ')');
	  $('#uploadEntrepreImgShow').html('<img src="'+json.obj+'" width="135" height="136"/>');	
	  $('#cmsEntreImgPath').val(json.obj);
	}
</script>

